package com.example.gcmtest1.youtube;

import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class ViewPagerAdapter extends FragmentPagerAdapter {

	private Context context;
	
	public ViewPagerAdapter(Context context, FragmentManager fm) {
		super(fm);
		this.context = context;
		
	}

	@Override
	public Fragment getItem(int position) {
		Fragment f = new Fragment();
		switch (position){
		case 0:
			f = LayoutOne.newInstance(this.context);	
			break;
		case 1:
				
			break;
		}
		return f;
		
	}

	@Override
	public int getCount() {
		return 1;
	}
	
	

}
